package com.weixing.mall.provider.model.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.weixing.mall.core.support.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 仓库模块-商品库存表
 * </p>
 *
 * @author Small
 * @since 2019-11-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("wms_product_stock")
public class ProductStock extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 商品ID
     */
    private Long goodsId;

    /**
     * 货品ID
     */
    private Long productId;

    /**
     * 仓库ID
     */
    private Long depotId;

    /**
     * 库存
     */
    private Integer stock;

    /**
     * 可用库存
     */
    private Integer enableStock;

    /**
     * 库位
     */
    private String storehouse;

    /**
     * 库存编码
     */
    private String stockSn;

    /**
     * 乐观锁
     */
    private Integer revision;

    /**
     * 创建人
     */
    private Long createdBy;

    /**
     * 创建时间
     */
    private Date createdTime;

    /**
     * 更新人
     */
    private Long updatedBy;

    /**
     * 更新时间
     */
    private Date updatedTime;

    //private  String depotOrder;

    //private  String  depotSn;

    private  String styleNo;

    private  String productSkuDesp;

    private  String productSn;

    private BigDecimal stockPrice;

    private String goodsSn;

    private String productImg;


}
